<!DOCTYPE html>
<html>
<head>
    <meta name="layout" content="main"/>
    <g:set var="entityName" value="${message(code: 'prouctCondition.label', default: 'ProuctCondition')}"/>
    <title>产品-条件管理</title>
</head>
<body class="fixed-navbar fixed-sidebar">
<div class="small-header">
    <div class="hpanel">
        <div class="panel-body">
            <div id="hbreadcrumb" class="pull-right">
                <ol class="hbreadcrumb breadcrumb">
                    <li>贷款管理系统</li>
                    <li class="active">
                        <span>产品-条件</span>
                    </li>
                </ol>
            </div>

            <h2 class="font-light m-b-xs">
                产品-条件
            </h2>
        </div>
    </div>
</div>
<div class="content animate-panel">
    <div class="row">
        <g:if test="${flash.message}">
            <div class="row">
                <div class="hpanel">
                    <div class="panel-body">
                        <div class="alert alert-info" role="alert">${flash.message}</div>
                    </div>
                </div>
            </div>
        </g:if>
    </div>
    <div class="row">
        <div class="hpanel hgreen">
            <div class="panel-heading">
                <div class="panel-tools">
                    <g:link action="create" class="btn btn-info btn-xs"><i class="fa fa-plus"></i>新建</g:link>
                </div>
                所有产品-条件
            </div>
            <div class="panel-body">
                <div class="table-responsive">
                    <table class="table table-striped table-bordered table-hover">
                        <thead>
                        <tr>
                            <g:sortableColumn property="prouctName" title="产品名称"/>
                            <g:sortableColumn property="componentName" title="组件名称"/>
                            <g:sortableColumn property="executeSequence" title="执行次序"/>
                            <g:sortableColumn property="logs" title="日志"/>
                            <g:sortableColumn property="createdDate" title="说明"/>
                            <g:sortableColumn property="createdDate" title="操作"/>
                        </tr>
                        </thead>
                        <tbody>
                        <g:each in="${prouctConditionList}">
                            <tr>
                                <td><g:link action="edit" id="${it?.id}" class="firstTd">${it?.prouct?.name}</g:link></td>
                                <td>${it?.component?.name}</td>
                                <td>${it?.executeSequence}</td>
                                <td>${it?.logs}</td>
                                <td>${it?.message}</td>
                                <td>
                                    <g:form resource="${it}" method="DELETE">
                                        <button class="deleteBtn btn btn-danger btn-xs btn-outline" type="button"><i
                                                class="fa fa-trash-o"></i> 删除</button>
                                    </g:form>
                                </td>
                            </tr>
                        </g:each>
                        </tbody>
                    </table>
                </div>
            </div>
            <div class="panel-footer">
                <div class="pagination">
                    <g:paginate total="${prouctConditionCount ?: 0}" params="${params}"/>
                </div>
            </div>
        </div>
    </div>
</div>
<g:javascript>
    $(function(){
        $("#resetBtn").click(function () {
            $("#name").val("");
        })
    });

</g:javascript>
</body>
</html>
